package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.QImPjMapper;
import com.ruoyi.system.domain.QImPj;
import com.ruoyi.system.service.IQImPjService;
import com.ruoyi.common.core.text.Convert;

/**
 * IM评价Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-20
 */
@Service
public class QImPjServiceImpl implements IQImPjService 
{
    @Autowired
    private QImPjMapper qImPjMapper;

    /**
     * 查询IM评价
     * 
     * @param imPingjiaId IM评价主键
     * @return IM评价
     */
    @Override
    public QImPj selectQImPjByImPingjiaId(Long imPingjiaId)
    {
        return qImPjMapper.selectQImPjByImPingjiaId(imPingjiaId);
    }

    /**
     * 查询IM评价列表
     * 
     * @param qImPj IM评价
     * @return IM评价
     */
    @Override
    public List<QImPj> selectQImPjList(QImPj qImPj)
    {
        return qImPjMapper.selectQImPjList(qImPj);
    }

    /**
     * 新增IM评价
     * 
     * @param qImPj IM评价
     * @return 结果
     */
    @Override
    public int insertQImPj(QImPj qImPj)
    {
        return qImPjMapper.insertQImPj(qImPj);
    }

    /**
     * 修改IM评价
     * 
     * @param qImPj IM评价
     * @return 结果
     */
    @Override
    public int updateQImPj(QImPj qImPj)
    {
        return qImPjMapper.updateQImPj(qImPj);
    }

    /**
     * 批量删除IM评价
     * 
     * @param imPingjiaIds 需要删除的IM评价主键
     * @return 结果
     */
    @Override
    public int deleteQImPjByImPingjiaIds(String imPingjiaIds)
    {
        return qImPjMapper.deleteQImPjByImPingjiaIds(Convert.toStrArray(imPingjiaIds));
    }

    /**
     * 删除IM评价信息
     * 
     * @param imPingjiaId IM评价主键
     * @return 结果
     */
    @Override
    public int deleteQImPjByImPingjiaId(Long imPingjiaId)
    {
        return qImPjMapper.deleteQImPjByImPingjiaId(imPingjiaId);
    }
}
